#pragma once

#include <vector>

typedef std::vector<D3DMATERIAL9> MaterialContainer;
typedef std::vector<IDirect3DTexture9*> TextureContainer;

struct XMesh
{
	ID3DXMesh*				m_pMesh;
	DWORD					m_dwNumMtrls;
	MaterialContainer		m_arrMtrl;
	TextureContainer		m_arrTex;
	
	XMesh();
	~XMesh();

	HRESULT LoadXFile(IDirect3DDevice9* pd3dDevice, TCHAR* strFilePath);
	void Release();
};